from django.urls import path
 
from . import views


app_name = 'blog'

urlpatterns = [
    path('', views.IndexView.as_view(), name='index'),
    path('blog/', views.BlogAllView.as_view(), name='blogAll'),
    path('posts/<int:pk>/', views.PostDetailView.as_view(), name='detail'),
    path('categories/<int:pk>/', views.CategoryView.as_view(), name='category'),
    path('tags/<int:pk>/',views.TagView.as_view(), name='tag'),
    path('dolike/<int:pk>/',views.Dolike, name='like'),
]